#include <iostream>
#include <cstdio>
using namespace std;

int main()
{
	char a, b, c, d, e;
	cin >> a >> b >> c >> d >> e;
	printf("%c%c%c%c%c", e, d, c, b, a);
	return 0;
}
